package util;

import java.util.*;
public class RemoveDuplicate {

/** Creates a new instance of RemoveDuplicate */
public RemoveDuplicate() {
}

public static void main(String args[])
{
ArrayList arlList = new ArrayList();
arlList.add("a");
arlList.add("a");
removeDuplicate(arlList);
System.out.print("arlList : " + arlList);

}
public static ArrayList  removeDuplicate(ArrayList arlList)
{
HashSet h = new HashSet(arlList);
arlList.clear();
arlList.addAll(h);
return arlList;
}
}
